﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace FangDuShi_Admin.Common
{
    public class AdminBaseController : Controller
    {
        public AdminBaseController()
        { 
        }


        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            if (OperateSession.get("LoginID") == null)
            {
                Response.Write("<script>window.alert('对不起，请重新登陆！');window.top.location.replace('"+Url.Action("Login","Home")+"')</script>");
                Response.Flush();
                Response.End();
            }
        }

      
    }
}
